package com.zhyl.demo.service;

import com.zhyl.demo.entity.TheEnd;

import java.util.ArrayList;

/**
 * @author yang3
 */
public interface TheEndService {
    Boolean addTheEnd(TheEnd theEnd);

    ArrayList<TheEnd> getAll();

    ArrayList<TheEnd> getByDoc(int docId);

    ArrayList<TheEnd> getByPatient(int patientId);

    ArrayList<TheEnd> searchPatient(Integer patientId, int docId);

    Integer checkHasPay(Integer patientId);

    TheEnd checkCaseHistoryByAppointment(int appointmentId);

    TheEnd getTheEndDetail(int theEndId);

    ArrayList<TheEnd> adminSearchPatient(Integer patId);

    Boolean updateInfo(TheEnd theEndDetail);

    ArrayList<TheEnd> searchPatientIlls(int patId, int docId);
}
